package com.erhuogo.action;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.erhuogo.entity.Announcement;
import com.erhuogo.service.AnnouncementService;
import com.opensymphony.xwork2.ActionSupport;

/**
 * 公告Action
 * @author aibinxiao
 * @date 2016年10月26日 上午11:28:21
 */
public class AnnouncementAction extends ActionSupport{
	private static final long serialVersionUID = 2645580508640708024L;
	private static Logger logger = LoggerFactory.getLogger(AnnouncementAction.class);
	
	// 模型驱动使用的对象
	private Announcement announcement;
	
	public Announcement getAnnouncement() {
		return announcement;
	}

	public void setAnnouncement(Announcement announcement) {
		this.announcement = announcement;
	}
	
	// 注入AnnouncementService
	private AnnouncementService announcementService;

	public AnnouncementService getAnnouncementService() {
		return announcementService;
	}

	public void setAnnouncementService(AnnouncementService announcementService) {
		this.announcementService = announcementService;
	}

}
